window.onload=function(){
    var str=''
    for(var i=0;i<3;i++){
        if(jilu.data[i]){
            str+=`
            <tr style="height:50px;">
            <td width="230">${jilu.data[i].liushui}</td>
            <td width="150"><i>${jilu.data[i].jine}</i></td>
            <td width="120">${jilu.data[i].zhanghu}</td>
            <td width="120">${jilu.data[i].zhaungtai}</td>
            <td width="230">${jilu.data[i].shijian}</td>
            </tr>
            `
        }
    }
    var mytable=document.getElementsByClassName('txjilu')[0]
    mytable.innerHTML = str
    mytable.firstElementChild.children[0].style.color="#f00" 
}
var jilu = {
    "data":[
    {
        "liushui":"流水号",
        "jine":"付款金额(元)",
        "zhanghu":"账户",
        "zhaungtai":"状态",
        "shijian":"时间",
    },
    {
        "liushui":"200709R1084817231",
        "jine":"20",
        "zhanghu":"**7433",
        "zhaungtai":"充值成功",
        "shijian":"2020-07-19 12:14",
    },
    {
        "liushui":"200709R1084817231",
        "jine":"20",
        "zhanghu":"**7433",
        "zhaungtai":"充值成功",
        "shijian":"2020-07-19 12:14",
    }
]
}